<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateCaseReportsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('c_case_reports', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('case_id')->default(0)->comment('病例ID');
            $table->text('images')->nullable()->default(null)->comment('病例图片');
            $table->dateTime('ins_times')->default(null)->comment('添加时间');
            $table->integer('user_id')->default(0)->comment('用户ID');
            $table->string('tags')->default("")->comment('标签名称');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('c_case_reports');
    }
}
